package com.zlf.service.api;

import com.github.pagehelper.PageInfo;
import com.zlf.entity.Admin;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface AdminService {

    List<Admin> getAdminByLoginAcct(String loginAcct);

    void saveAdmin(Admin admin);

    void deleteByPrimaryKey(Integer id);

    List<Admin> findAll();

    Admin getAdminByLoginAcct(String loginAcct, String userPswd);

    PageInfo<Admin> selectAdminListByKeyword(String keyword, Integer pageNum, Integer pageSize);

    Admin getAdminById(Integer adminId);

    void updateAdmin(Admin admin);

    void insertAdminRoleRelationship(Integer adminId, List<Integer> roleList);
}
